import request from "../utils/axios";

//视频列表video/category/list
export const getVideoList = () => {
	return request({
		method: "GET",
		url: `video/category/list`,
	});
};

// 视频url
export const getVideoUrl = (id) => {
	return request({
		method: "GET",
		url: `/video/url/?id=${id}`,
	});
};

//每个分页下的数据 video/group?id=60100&offset=8
// export const getVideoGroup = (id,offset) => {
// 	return request({
// 		method: "GET",
// 		url: `/video/group/?id=${id}?offset=${offset}`,
// 	});
// };

//获取列表数据 /mv/first?limit=20
export const getMusicVideoFirst = (limit) => {
	return request({
		method: "GET",
		url: `/mv/first/?limit=${limit}`,
	});
};

// mv信息列表
export const getMusicVideoInfo = (id) => {
	return request({
		method: "GET",
		url: `/video/detail/?id=${id}`,
	});
};
